package com.xmtlxx.system.domain.bo;

import com.xmtlxx.common.core.domain.BaseEntity;
import com.xmtlxx.common.core.validate.AddGroup;
import com.xmtlxx.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * 租户业务对象 sys_tenant
 *
 * @author xmtlxx
 * @date 2022-04-17
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("租户业务对象")
public class SysTenantBo extends BaseEntity {

    /**
     * 租户ID
     */
    @ApiModelProperty(value = "租户ID")
    private Long tenantId;

    /**
     * 租户名称
     */
    @ApiModelProperty(value = "租户名称", required = true)
    @NotBlank(message = "租户名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String tenantName;

    /**
     * 负责人
     */
    @ApiModelProperty(value = "负责人", required = true)
    @NotBlank(message = "负责人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String leader;

    /**
     * 联系电话
     */
    @ApiModelProperty(value = "联系电话", required = true)
    @NotBlank(message = "联系电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱", required = true)
    @NotBlank(message = "邮箱不能为空", groups = { AddGroup.class, EditGroup.class })
    private String email;

    /**
     * 租户描述
     */
    @ApiModelProperty(value = "租户描述")
    private String remark;

    /**
     * 租户状态（0正常 1停用）
     */
    @ApiModelProperty(value = "租户状态（0正常 1停用）")
    private String status;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @ApiModelProperty(value = "删除标志（0代表存在 2代表删除）")
    private String delFlag;


}
